package cn.zf233.xcloud.service;

import cn.zf233.xcloud.commom.R;
import cn.zf233.xcloud.entity.User;
import cn.zf233.xcloud.vo.ShareVo;

import java.util.List;

/**
 * Created by zf233 on 2021/2/14
 */
public interface ShareService {

    R<String> shareFileDec(User user, Long fileId, Integer type, Integer daysOfTimeout);

    R timeout(Long fileId, Long userId, Integer type, String code);

    R<List<ShareVo>> listShare(User user);

    R remove(Long[] shareId);

    R<ShareVo> getFileShare(User user, Long fileId);

    R extend(Long shareId, Integer type);
}
